package cn.tedu.onlinestore.review.mapper;

import cn.tedu.onlinestore.review.pojo.entity.Review;
import cn.tedu.onlinestore.review.pojo.vo.ReviewVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReviewMapper {
    void insert(Review review);

    List<ReviewVO> selectReviewById(Integer id);

    List<ReviewVO> getAllReview(@Param("page") Integer page,@Param("size") Integer size);

    void deleteReview(Integer id);
}
